VDSetInputColorSpaceMode
TheVDSetInputColorSpaceMode
function allows applications to choose between color and grayscale digitized video.
pascal VideoDigitizerError VDSetInputColorSpaceMode (VideoDigitizerComponent ci, short colorSpaceMode);
ci
- Specifies the video digitizer component for the request. Applications obtain this reference from the Component Manager's
OpenComponent
function.colorSpaceMode
- Controls color digitization. The following values are valid:
0
- Grayscale digitization
1
- Color digitization
DESCRIPTION
Applications can determine whether a digitizer component supports grayscale or color digitization by examining the digitizer component's input capability flags. Specifically, if thedigiInDoesColor
flag is set to 1, the digitizer component supports color digitization. Similarly, if thedigiInDoesBW
flag is set to 1, the digitizer component supports grayscale digitization. Applications can use theVDGetCurrentFlags
function (described on page 8-25) to obtain the input capability flags of a digitizer component.RESULT CODES
noErr 0 No error digiUnimpErr -2201 Function not supported qtParamErr -2202 Invalid parameter value
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help